package cn.wolfcode.luowowo.article.service;


import cn.wolfcode.luowowo.article.domain.StrategyContent;
import cn.wolfcode.luowowo.article.domain.StrategyDetail;
import cn.wolfcode.luowowo.article.query.StrategyDetailQuery;
import cn.wolfcode.luowowo.article.vo.StrategyStatisPersistenceVO;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 攻略明细服务
 */
public interface IStrategyDetailService {
    /**
     * 分页查询
     * @param qo
     * @return
     */
    PageInfo query(StrategyDetailQuery qo);
    /**
     * 查询所有
     * @return
     */
    List<StrategyDetail> list();
    /**
     * 查单个
     * @param id
     * @return
     */
    StrategyDetail get(Long id);

    void saveOrUpdate(StrategyDetail detail, String tags);

    StrategyContent getContent(Long id);

    /**
     * 查询指定目的地的前三篇
     *通过点击量拿前三的
     * @param destId
     * @return
     */
    List<StrategyDetail> queryViewNumTop3(long destId);


    void  updateStatisVO(StrategyStatisPersistenceVO vo);
}
